"""
cencoding = 'utf-8'
@author : fhy
@time   : 2022年03月11日  21:37
@IDEL   : PyCharm
@goal   : learn-sys
"""
import sys


print(sys.version)   # 3.8.10
print(sys.maxsize)   # 9223372036854775807
print(sys.path)     # path of python
print(sys.platform)  # linux
# print(sys.copyright)    # Copyright (c) 2001-2019 Python Software Foundation. All Rights Reserved.
print("=========================="*2)
print(sys.argv)


# sys.argv
def main():
    # ['learn_sys.py'] arguement of python command line
    print(sys.argv)
    print(sys.argv[0])
    print(sys.argv[1])
    print(sys.argv[2])
    print(sys.argv[3])


print("===========================2"*2)

print(sys.getdefaultencoding())  # utf-8
print(sys.getfilesystemencoding())  # utf-8

# -1: error, 0: normal, 1: normal
sys.exit(-1)
# sys.exit(0)
# sys.exit(1)
